package com.bytedance.dao;

import com.bytedance.dataobject.C;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.UpdateProvider;

import java.util.List;

@Mapper
public interface CDAO {

    @InsertProvider(type = CProvider.class, method = "insertSQL")
    int addC(C c);

    @UpdateProvider(type = CProvider.class, method = "updateSQL")
    int updateC(C c);

    @SelectProvider(type = CProvider.class, method = "selectAllSQL")
    List<C> getCList();

    @SelectProvider(type = CProvider.class, method = "selectLikeBSQL")
    List<C> getCListByB(String b);

    @SelectProvider(type = CProvider.class, method = "selectByBSQL")
    C getCByB(String b);
}
